/**
 * Created by 八千穂えな on 2016/10/18.
 */
managerApp.factory("pdFactory", ['$http', function ($http) {
    var pd = {};

    pd.getList = function (params, callback) {
        angularHttpGet($http, "/smtool_project/api/pd/getList", params, function (response) {
            callback(response);
        })
    };

    pd.editStaff = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/pd/update", params, function (response) {
            callback(response);
        })
    };

    pd.createStaff = function (params, callback) {
        angularHttpPost($http, "/smtool_project/api/pd/create", params, function (response) {
            callback(response);
        })
    };

    return pd;
}]);
